package com.ruoyi.bizsys.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.AppDeviceInfo;
import com.ruoyi.bizsys.domain.BankAccount;
import com.ruoyi.bizsys.domain.RealNameAuth;
import com.ruoyi.bizsys.vo.BankAccountVo;

/**
 * BankAccountService接口
 *
 * @author african-loan
 * @date 2021-12-28
 */
public interface IBankAccountService{
    /**
     * 查询BankAccount
     *
     * @param id BankAccountID
     * @return BankAccount
     */
    public BankAccount selectBankAccountById(Long id);

    /**
     * 查询BankAccount列表
     *
     * @param bankAccount BankAccount
     * @return BankAccount集合
     */
    public List<BankAccount> selectBankAccountList(BankAccount bankAccount);

    /**
     * 新增BankAccount
     *
     * @param bankAccount BankAccount
     * @return 结果
     */
    public int insertBankAccount(BankAccount bankAccount);

    /**
     * 修改BankAccount
     *
     * @param bankAccount BankAccount
     * @return 结果
     */
    public int updateBankAccount(BankAccount bankAccount);

    /**
     * 批量删除BankAccount
     *
     * @param ids 需要删除的BankAccountID
     * @return 结果
     */
    public int deleteBankAccountByIds(Long[] ids);

    /**
     * 删除BankAccount信息
     *
     * @param id BankAccountID
     * @return 结果
     */
    public int deleteBankAccountById(Long id);

    /**
     * 根据账户号修改
     * @param bankAccount
     * @return
     */
    int updateBankAccountIsDefault(BankAccount bankAccount);

    List<BankAccountVo> selectBankAccountAndNameList(BankAccount bankAccount);

    int countByCustNo(String userId);

    int saveByRealNameAuth(RealNameAuth realNameAuth);

    String selectBankAccountMaxCnt(String custNo);

    int selectBankAccountCnt(String custNo);
}
